<ion-view view-title="{{title}}" class="employeemanager_rights_add">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
		<ion-nav-buttons side="right">
			<!--<p class="savebtntext f-size-15" on-tap="save()">保存</p>-->
			<button class="button button-clear saveText" on-tap="save()">保存</button>
		</ion-nav-buttons>
	</ion-nav-bar>
	
	<ion-content>
		<div class="list bg">
			<li class="item item-input roleinfoframe">
				<span class="rolenametext f-size-16">
				角色名称
			</span>
				<input ng-class="input.name!=null?'rolenameinput':'rolenameinputno'" style="font-size: 16px;" type="text" placeholder="请输入角色名称" ng-model="input.name" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" ng-if="input.name" on-tap="claerrolename()" />
			</li>
			<div ng-repeat="right in rights" class="jurisdictionframe padding-0">
				<li class="item item-input roletypeframe f-size-16">
					<img src="{{right.is_all?'./img/guilin/common/icon_checked_b@2x.png':'./img/guilin/common/icon_uncheck_b@2x.png'}}" on-tap="all(right.type_name)" />
					<!--<img src="./img/guilin/common/icon_checked_b@2x.png"  ng-if="right.is_all" on-tap="all(right.type_name)"/>-->
					{{right.type_name}}
					<!--<span class="right-zhang assertive" on-tap="all(right.type_name)">全选</span>-->
				</li>
				<li class="item padding-0 rolerightframe">
					<div class="item-input padding-0 powerframe" ng-repeat="text in right.rights" ng-class="{'powerframe-left-right':$index%3==1,'clear_zhang':$index%3==0}" on-tap="getid_checked(right.type_name,text.right_id)">
						<div class="imgframe">
						<img src="./img/guilin/common/icon_checked_b@2x.png" ng-if="text.id_checked" />
						<img src="./img/guilin/common/icon_uncheck_b@2x.png" ng-if="!text.id_checked" />
						</div>
						<!--	<span class="checkbox checkbox-square padding-0">
						<input type="checkbox" value="{{text.right_id}}" class="rightBox" ng-model="text.id_checked"/>
					</span>-->
						<div class="textframe">{{text.right_name}}</div>

					</div>
				</li>
			</div>
		</div>
	</ion-content>
</ion-view>